

<div class="pad-10">

	<div class="navigate">
		<h1>生成订单</h1>
		<a class="button fr" href="/index.php/Admin/Task/">任务列表</a>
  	</div>
  	
  	
<div class="col-tab">

<ul class="tabBut cu-li">
	<li id="tab_setting_1" class="on" onclick="SwapTab('setting','on','',2,1);">生成订单</li>
	<li id="tab_setting_2" class="" onclick="SwapTab('setting','on','',2,2);">批量添加</li>
</ul>


<!-- 生成订单 -->
<div id="div_setting_1" class="contentList pad-10">

<form id="form_batch_order" action="/index.php/Admin/Task/batch_order_do" method="post">

<table width="100%" cellpadding="2" cellspacing="1" class="table_form">

	<tr>
		<th width="100">产品链接:</th>
		<td>
			
			<input type="text" name="goods_url" id="goods_url" class="input-text"
			value="" style="width:300px;">
          	
		</td>
		<th></th>
	</tr>

	<tr>
		<th width="100">产品名称:</th>
		<td>
			<input type="text" name="goods_name" id="goods_name" class="input-text"
			value="" style="width:300px;">
		</td>
	</tr>
	
	<tr>
		<th width="100">关键词:</th>
		<td>
		
			<input type="text" name="keywords" id="keywords" class="input-text"
			value="" style="width:300px;" >

		</td>
	</tr>
	
	<tr>
		<th width="100">刷单量:</th>
		<td>
		
			<input type="text" name="goods_number" id="goods_number" class="input-text"
			value="" style="width:300px;" >

		</td>
	</tr>
	
	<tr>
		<th width="100">刷单价:</th>
		<td>
		<input type="text" name="goods_price" id="goods_price" class="input-text"
			value="" style="width:300px;">
		</td>
	</tr>
	<tr>
		<th width="100">最终价:</th>
		<td>
		<input type="text" name="final_price" id="final_price" class="input-text"
			value="" style="width:300px;">
		</td>
	</tr>
	<tr>
		<th width="100">评论内容:</th>
		<td>
		<input type="text" name="remark" id="remark" class="input-text"
			value="" style="width:300px;">
		</td>
	</tr>
	<tr>
		<th width="100">批量生成数量:</th>
		<td>
		<input type="text" name="add_count" id="add_count" class="input-text"
			value="" style="width:300px;">
		</td>
	</tr>
	<tr>
		<th width="100"></th>
		<td>
			<input type="submit" class="button" value="生成" id="btnSubmit" />
		</td>
	</tr>
</table>

<input type="hidden" name="task_id" value="{$id}" />

</form>

</div>
<!-- 生成订单 -->



<!-- 批量添加  -->
<div id="div_setting_2" class="contentList pad-10 hidden">

<form id="form_batch_add" action="/index.php/Admin/Task/batch_add_do" method="post">

<table width="100%" cellpadding="2" cellspacing="1" class="table_form">

	<tr>
		<th width="100">说明:</th>
		<td>
			<pre>
			1.格式:产品链接,产品名称,关键词,刷单量,刷单价,最终价,评论内容
			2.一行一条数据
			3.空行会自动过滤
			4.数据项以一个或多个空格(或Tab制表符)进行分隔,
			5.第一行标题保留，不得省去
			6.批量添加会先检查格式是否正确，若有错误，必需修正所以错误才可添加
			</pre>
		</td>
	</tr>
	
	<tr>
		<th width="100"></th>
		<td>
			
			<textarea name="content" rows="20" cols="100">产品链接 产品名称 关键词 刷单量 刷单价 最终价 评论内容
</textarea>
			
		</td>
	</tr>
	<tr>
		<th width="100"></th>
		<td>
		
			<div id="div_error" class="red"></div>
		
		</td>
	</tr>
	<tr>
		<th width="100"></th>
		<td>
			<input type="submit" class="button" value="添加" id="btnAdd" />
		</td>
	</tr>
	
</table>

<input type="hidden" name="task_id" value="{$id}" />
</form>

</div>
<!-- 批量添加  -->



</div>
</div>



<script type="text/javascript" src="/Js/common.js"></script>
<script type="text/javascript" src="/Js/jquery.form.js"></script>
<script type="text/javascript" src="/Js/adm/task/batch_order.js"></script>